<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <script>
    (function () {
      var metaEl = document.createElement('meta');
      var scale = devicePixelRatio;
      metaEl.setAttribute('name', 'viewport');
      metaEl.setAttribute('content', 'initial-scale=' + (1 / scale) + ', maximum-scale=' + (1 / scale) +
        ', minimum-scale=' + (1 / scale) + ', user-scalable=no');
      document.documentElement.firstElementChild.appendChild(metaEl);
    })();
  </script>
  <title>Document</title>
  <!-- 
    比例单位 vw: 100vw = 1 屏幕宽度
  -->
  <style>
    body {
      margin: 0;
    }

    #box {
      display: flex;
    }

    #box div {
      width: 46.4vw;
      height: 24vw;
      background-color: red;
      font-size: 5vw;
    }

    #box div:nth-of-type(1) {
      margin: 0 2.133vw 0 2.667vw;
    }

    nav {
      display: flex;
    }

    nav a {
      margin: 0 4px;
      font-size: 3.2vw;
      text-decoration: none;
      color: red
    }
    /* min-width： 最小尺寸
       max-width: 最大尺寸
    */
    @media all and (min-width:640px) {
      nav a {
        color: green;
      }
    }
  </style>

</head>

<body>
  <div id="box">
    <div>尖货抽签</div>
    <div>新品日历</div>
  </div>
  <nav>
    <a href="#">YK菌 - 1</a>
    <a href="#">YK菌 - 2</a>
    <a href="#">YK菌 - 3</a>
    <a href="#">YK菌 - 4</a>
    <a href="#">YK菌 - 5</a>
    <a href="#">YK菌 - 6</a>
  </nav>
</body>

</html>